const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    entry: {
        index: ['./src/js/index.js', './src/scss/index.scss'],
        case: ['./src/js/case.js', './src/scss/case.scss'],
        list: ['./src/js/list.js', './src/scss/list.scss'],
        inside: ['./src/js/inside.js', './src/scss/inside.scss'],
        person: ['./src/js/person.js', './src/scss/person.scss'],

    },
    plugins: [
        new HtmlWebpackPlugin({
            template: "./src/html/index.html",
            filename: "index.html",
            chunks: ["index"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/case.html",
            filename: "case.html",
            chunks: ["case"]
        }),

        new HtmlWebpackPlugin({
            template: "./src/html/list.html",
            filename: "list.html",
            chunks: ["list"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/inside.html",
            filename: "inside.html",
            chunks: ["inside"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/person.html",
            filename: "person.html",
            chunks: ["person"]
        }),
    ]
}